import Vue from 'vue'
import App from './App'
import GoEasy from './sdks/goeasy-1.1.1.js'
import store from './store/store.js'
//把vuex定义成全局组件
Vue.prototype.$store = store

Vue.config.productionTip = false
Vue.prototype.$goEasy = new GoEasy({
    host: "hangzhou.goeasy.io", //应用所在的区域地址: 【hangzhou.goeasy.io | singapore.goeasy.io】
    appkey: "BC-ee8bc7d3360b4708b0cfd19a3f5b1ab8", //替换为您的应用appkey
    onConnected: function() {
        console.log('连接成功！')
    },
    onDisconnected: function() {
        console.log('连接断开！')
    },
    onConnectFailed: function(error) {
        console.log('连接失败或错误！')
    }
});
App.mpType = 'app'

const app = new Vue({
    ...App,
	 store
})
app.$mount()
